﻿namespace com.vs.General
{
    using System;
    using System.Collections.Generic;

    public class DictionaryManager
    {
        public static List<KeyValuePair<string, KeyValuePair<string, object>>> ToList(Dictionary<string, KeyValuePair<string, object>> dcCond)
        {
            List<KeyValuePair<string, KeyValuePair<string, object>>> list = null;
            list = new List<KeyValuePair<string, KeyValuePair<string, object>>>();
            foreach (KeyValuePair<string, KeyValuePair<string, object>> pair3 in dcCond)
            {
                KeyValuePair<string, object> pair = new KeyValuePair<string, object>(pair3.Value.Key, pair3.Value.Value);
                KeyValuePair<string, KeyValuePair<string, object>> item = new KeyValuePair<string, KeyValuePair<string, object>>(pair3.Key, pair);
                list.Add(item);
            }
            return list;
        }
    }
}

